package com.zrgj.common.response;

import lombok.Data;

public enum StatusCodeEnum {
    SUCCESS(200, "成功"),
    NO_CONTENT(204,"没有返回值"),
    REPEAT_TO_ADD(205,"重复添加"),
    UNAUTHORIZED(401,"认证失败"),
    NOT_FOUND(404, "找不到资源"),
    NOT_LOGIN(405,"用户未登录"),
    ERROR(500, "业务异常"),
    LOGIN_ERROR(501,"用户名或密码错误"),
    FORMAT_NOT_SUPPORT(502,"图片格式不支持"),
    ;

    private int code;
    private String message;

    StatusCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
